pp108 : onfocus Event

onfocus Event


This event is executed when a cell is set to focus.

Syntax

Inline HTML
<div cordysType="wcp.library.ui.XGrid" id="xgridId ()">
    <div id="columnId" onfocus="handler" ref="columnRef">columnLabel</div>
    ...
</div>


Event Information

To invoke Navigate to or click a cell.
Default Action Initiates any action associated with this event.


Event Object Properties


Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.

Property Description
businessObject XML node of the business object associated with the row.
columnId Read-only. String that refers to the identifier of the column of the cell, for which the event is executed.
data XML node that is the basis for the content in the XGrid.
dataNode XML node associated with the cell.
getCells() Returns an array of cell objects.
getIndex() Returns the row index, where the index of the first row is '1'.
row Refers to the HTML node of the unfrozen part of a row.
rowData XML node of the data in a row.
rowFreezeColumn Refers to the HTML node of the frozen part (if any) of a row.
srcElement Refers to the HTML node of the cell that is set to focus.
value Refers to the value of the cell.


See Also


xgrid , onblur